#include "../list.h"
#include <stdio.h>
int main()
{
	struct list_s* list = list_new(10, sizeof(int));
	int a = 45;
	list_push_back(list, &a);
	list_push_back(list, &a);
	struct list_node_s* begin = list_begin(list);
        const struct list_node_s* end = list_end(list);
	
	while(begin != end)
	{
		printf("data is %d\n", *(int*)(begin->data));
		begin = begin->next;
	}
	return 0;
}
